package cn.tedu.csmall.passport.pojo.param;



import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AdminInsertParam implements Serializable {
    @NotNull(message = "添加失败，管理员用户名不能为空！")
    @ApiModelProperty(value = "管理员用户名",required = true,example = "坤坤")
    private String username;
    @NotNull(message = "添加失败，管理员密码不能为空！")
    @ApiModelProperty(value = "管理员密码",required = true,example = "123456")
    private String password;
    private String nickname;
    private String avatar;
    private String phone;
    private String email;
    private String description;
    @NotNull(message = "添加失败，管理员是否启用不能为空！")
    @ApiModelProperty(value = "管理员是否启用",required = true,example = "1")
    @Range(max = 1,message = "该数据只能是0或1")
    private Integer enable;
    @ApiModelProperty(value = "管理员是否启用",required = true,example = "1",dataType = "array")
    private Long[] roleIds;
}
